-------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urp
> elainen Zhang)/JOP/UZ_JOP2021_Replication/Analysis/logSTATA/015_analysis_drop
> Urban.smcl
  log type:  smcl
 opened on:   6 Nov 2021, 20:34:42

. 
. 
. *****************************************************************************
> **
. /*                                        URPELAINEN & ZHANG 2021            
>                                     */
. *****************************************************************************
> **
. 
. /* 
> 
> File Name:      015_analysis_dropUrban.do
> 
> By:                             Alice Tianbo Zhang (alice.tianbo.zhang@gmail.
> com)
> 
> Last Edited:    10/20/2021
> 
> Purpose:                
> 
> Data Used:      votes_wind_panel_urban.dta
>                                 election_district_panel_urban.dta
>                                 
> 
> Program Used:   - reghdfe -
> 
> */
. 
. *****************************************************************************
> **
. /*                                         Table A9                          
>                                         */
. *****************************************************************************
> **
. cd "$rootDir/$dataDir/Final"
/Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urpelainen Zhang
> )/JOP/UZ_JOP2021_Replication/Data/Final

. use election_district_panel_urban.dta, clear

. 
. ** Create instrument and fixed effects
. gen t = year - 2004

. gen inter = t * mean_wp

. 
. egen stateyear_fixed = group(state year)

. egen district_fixed = group(state district)

. 
. gen cum_lncapacity_turbine = log(cum_capacity_turbine + 1)

. gen cum_lncount_turbine = log(cum_count_turbine +1 )

. 
. gen turnout = votes1 + votes2 + votes3 + votes4

. gen lnturnout = log(turnout)
(1 missing value generated)

. 
. 
. local outcome demvotesmajorpercent repvotesmajorpercent incumbvotesmajorperce
> nt  // outcome variable 

. local endogenous cum_capacity_turbine cum_count_turbine  // endogenous variab
> le

. local instrument inter // instrument

. local admin1_trend stateyear_fixed // geography * time trend

. local admin2 district_fixed // panel unit (cluster variable)

. 
. 
. foreach y in `outcome' {
  2.         // Create outcome variable label for storing estimates
.         local y_name = substr("`y'", 1, 3)
  3.         
.         foreach x in `endogenous' {
  4.                         // Create endogenous variable label for storing es
> timates
.                         tokenize "`x'", parse("_")
  5.                         local x_name "`3'"
  6.                         di "`x_name'"
  7.                         
.                         // Run IV regression
.                         reghdfe `y' (`x' = `instrument') if frac_urbanArea < 
> 0.5, absorb(`admin1_trend' `admin2') ffirst stages(first ols reduced) vce(clu
> ster `admin2') old
  8.                         
.                         // Store IV, first stage, OLS, reduced form estimates
.                         estimates store `y_name'_`x_name'_iv
  9.                         estimates restore reghdfe_first1
 10.                         estimates store `y_name'_`x_name'_first
 11.                         estimates restore reghdfe_ols
 12.                         estimates store `y_name'_`x_name'_ols
 13.                         estimates restore reghdfe_reduced
 14.                         estimates store `y_name'_`x_name'_reduced
 15.                 }
 16. }
capacity
(running historical version of reghdfe)
(dropped 4 singleton observations)
(converged in 5 iterations)

Stage: first - cum_capacity_turbine

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =      14.37
Statistics robust to heteroskedasticity           Prob > F        =     0.0002
                                                  R-squared       =     0.7891
                                                  Adj R-squared   =     0.6621
                                                  Within R-sq.    =     0.1170
Number of clusters (district_fixed) =        193  Root MSE        =   111.9682

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_capaci~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   38.93455   10.27061     3.79   0.000     18.67684    59.19225
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           96              96              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =       5.21
Statistics robust to heteroskedasticity           Prob > F        =     0.0236
                                                  R-squared       =     0.8513
                                                  Adj R-squared   =     0.7618
                                                  Within R-sq.    =     0.0081
Number of clusters (district_fixed) =        193  Root MSE        =     9.3550

                               (Std. Err. adjusted for 193 clusters in district
> _fixed)
-------------------------------------------------------------------------------
-------
                     |               Robust
demvotesmajorpercent |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |   .0070877   .0031066     2.28   0.024     .0009602    .
> 0132152
-------------------------------------------------------------------------------
-------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |           96              96              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =      10.29
Statistics robust to heteroskedasticity           Prob > F        =     0.0016
                                                  R-squared       =     0.8539
                                                  Adj R-squared   =     0.7660
                                                  Within R-sq.    =     0.0256
Number of clusters (district_fixed) =        193  Root MSE        =     9.2720

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
demvotesma~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   1.435407   .4474384     3.21   0.002     .5528808    2.317933
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           96              96              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_capacity |      14.37    0.0002 |       16.51   0.0000 |       14.37

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=10.68    P-val=0.0011

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      89.20
Kleibergen-Paap Wald rk F statistic                                14.37

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=      10.29     P-val=0.0016
Anderson-Rubin Wald test           Chi-sq(1)=     11.82     P-val=0.0006
Stock-Wright LM S statistic        Chi-sq(1)=      8.38     P-val=0.0038

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =        770
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =      770
                                                      F(  1,   192) =     6.53
                                                      Prob > F      =   0.0114
Total (centered) SS     =  42349.67487                Centered R2   =   0.8299
Total (uncentered) SS   =  42349.67487                Uncentered R2 =        .
Residual SS             =  48051.27388                Root MSE      =    10.01

-------------------------------------------------------------------------------
-------
                     |               Robust
demvotesmajorpercent |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |   .0368672   .0144293     2.56   0.011     .0084069    .
> 0653274
-------------------------------------------------------------------------------
-------
Underidentification test (Kleibergen-Paap rk LM statistic):             10.681
                                                   Chi-sq(1) P-val =    0.0011
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               89.204
                         (Kleibergen-Paap rk Wald F statistic):         14.371
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_capacity_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |           96              96              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)
count
(running historical version of reghdfe)
(dropped 4 singleton observations)
(converged in 5 iterations)

Stage: first - cum_count_turbine

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =      13.58
Statistics robust to heteroskedasticity           Prob > F        =     0.0003
                                                  R-squared       =     0.9885
                                                  Adj R-squared   =     0.9816
                                                  Within R-sq.    =     0.1217
Number of clusters (district_fixed) =        193  Root MSE        =    65.1375

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_count_~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   23.15835   6.285002     3.68   0.000     10.76183    35.55486
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           96              96              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =       5.64
Statistics robust to heteroskedasticity           Prob > F        =     0.0186
                                                  R-squared       =     0.8514
                                                  Adj R-squared   =     0.7619
                                                  Within R-sq.    =     0.0087
Number of clusters (district_fixed) =        193  Root MSE        =     9.3521

                            (Std. Err. adjusted for 193 clusters in district_fi
> xed)
-------------------------------------------------------------------------------
----
                  |               Robust
demvotesmajorpe~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |   .0126049   .0053098     2.37   0.019     .0021319    .023
> 0779
-------------------------------------------------------------------------------
----

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |           96              96              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =      10.29
Statistics robust to heteroskedasticity           Prob > F        =     0.0016
                                                  R-squared       =     0.8539
                                                  Adj R-squared   =     0.7660
                                                  Within R-sq.    =     0.0256
Number of clusters (district_fixed) =        193  Root MSE        =     9.2720

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
demvotesma~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   1.435407   .4474384     3.21   0.002     .5528808    2.317933
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           96              96              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_count_tu |      13.58    0.0003 |       15.59   0.0001 |       13.58

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=10.27    P-val=0.0013

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      93.25
Kleibergen-Paap Wald rk F statistic                                13.58

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=      10.29     P-val=0.0016
Anderson-Rubin Wald test           Chi-sq(1)=     11.82     P-val=0.0006
Stock-Wright LM S statistic        Chi-sq(1)=      8.38     P-val=0.0038

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =        770
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =      770
                                                      F(  1,   192) =     6.14
                                                      Prob > F      =   0.0141
Total (centered) SS     =  42349.67487                Centered R2   =   0.8314
Total (uncentered) SS   =  42349.67487                Uncentered R2 =        .
Residual SS             =  47634.72731                Root MSE      =    9.962

-------------------------------------------------------------------------------
----
                  |               Robust
demvotesmajorpe~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |   .0619823   .0250215     2.48   0.014     .0126299    .111
> 3347
-------------------------------------------------------------------------------
----
Underidentification test (Kleibergen-Paap rk LM statistic):             10.273
                                                   Chi-sq(1) P-val =    0.0013
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               93.251
                         (Kleibergen-Paap rk Wald F statistic):         13.577
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_count_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |           96              96              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)
capacity
(running historical version of reghdfe)
(dropped 4 singleton observations)
(converged in 5 iterations)

Stage: first - cum_capacity_turbine

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =      14.37
Statistics robust to heteroskedasticity           Prob > F        =     0.0002
                                                  R-squared       =     0.7891
                                                  Adj R-squared   =     0.6621
                                                  Within R-sq.    =     0.1170
Number of clusters (district_fixed) =        193  Root MSE        =   111.9682

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_capaci~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   38.93455   10.27061     3.79   0.000     18.67684    59.19225
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           96              96              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =       5.21
Statistics robust to heteroskedasticity           Prob > F        =     0.0236
                                                  R-squared       =     0.8513
                                                  Adj R-squared   =     0.7618
                                                  Within R-sq.    =     0.0081
Number of clusters (district_fixed) =        193  Root MSE        =     9.3550

                               (Std. Err. adjusted for 193 clusters in district
> _fixed)
-------------------------------------------------------------------------------
-------
                     |               Robust
repvotesmajorpercent |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |  -.0070877   .0031066    -2.28   0.024    -.0132152   -.
> 0009602
-------------------------------------------------------------------------------
-------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |           96              96              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =      10.29
Statistics robust to heteroskedasticity           Prob > F        =     0.0016
                                                  R-squared       =     0.8539
                                                  Adj R-squared   =     0.7660
                                                  Within R-sq.    =     0.0256
Number of clusters (district_fixed) =        193  Root MSE        =     9.2720

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
repvotesma~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |  -1.435407   .4474384    -3.21   0.002    -2.317933   -.5528807
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           96              96              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_capacity |      14.37    0.0002 |       16.51   0.0000 |       14.37

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=10.68    P-val=0.0011

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      89.20
Kleibergen-Paap Wald rk F statistic                                14.37

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=      10.29     P-val=0.0016
Anderson-Rubin Wald test           Chi-sq(1)=     11.82     P-val=0.0006
Stock-Wright LM S statistic        Chi-sq(1)=      8.38     P-val=0.0038

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =        770
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =      770
                                                      F(  1,   192) =     6.53
                                                      Prob > F      =   0.0114
Total (centered) SS     =  42349.67582                Centered R2   =   0.8299
Total (uncentered) SS   =  42349.67582                Uncentered R2 =        .
Residual SS             =  48051.27431                Root MSE      =    10.01

-------------------------------------------------------------------------------
-------
                     |               Robust
repvotesmajorpercent |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |  -.0368672   .0144293    -2.56   0.011    -.0653274   -.
> 0084069
-------------------------------------------------------------------------------
-------
Underidentification test (Kleibergen-Paap rk LM statistic):             10.681
                                                   Chi-sq(1) P-val =    0.0011
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               89.204
                         (Kleibergen-Paap rk Wald F statistic):         14.371
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_capacity_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |           96              96              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)
count
(running historical version of reghdfe)
(dropped 4 singleton observations)
(converged in 5 iterations)

Stage: first - cum_count_turbine

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =      13.58
Statistics robust to heteroskedasticity           Prob > F        =     0.0003
                                                  R-squared       =     0.9885
                                                  Adj R-squared   =     0.9816
                                                  Within R-sq.    =     0.1217
Number of clusters (district_fixed) =        193  Root MSE        =    65.1375

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_count_~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   23.15835   6.285002     3.68   0.000     10.76183    35.55486
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           96              96              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =       5.64
Statistics robust to heteroskedasticity           Prob > F        =     0.0186
                                                  R-squared       =     0.8514
                                                  Adj R-squared   =     0.7619
                                                  Within R-sq.    =     0.0087
Number of clusters (district_fixed) =        193  Root MSE        =     9.3521

                            (Std. Err. adjusted for 193 clusters in district_fi
> xed)
-------------------------------------------------------------------------------
----
                  |               Robust
repvotesmajorpe~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |  -.0126049   .0053098    -2.37   0.019    -.0230779   -.002
> 1319
-------------------------------------------------------------------------------
----

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |           96              96              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =        770
Absorbing 2 HDFE groups                           F(   1,    192) =      10.29
Statistics robust to heteroskedasticity           Prob > F        =     0.0016
                                                  R-squared       =     0.8539
                                                  Adj R-squared   =     0.7660
                                                  Within R-sq.    =     0.0256
Number of clusters (district_fixed) =        193  Root MSE        =     9.2720

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
repvotesma~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |  -1.435407   .4474384    -3.21   0.002    -2.317933   -.5528807
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           96              96              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_count_tu |      13.58    0.0003 |       15.59   0.0001 |       13.58

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=10.27    P-val=0.0013

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      93.25
Kleibergen-Paap Wald rk F statistic                                13.58

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=      10.29     P-val=0.0016
Anderson-Rubin Wald test           Chi-sq(1)=     11.82     P-val=0.0006
Stock-Wright LM S statistic        Chi-sq(1)=      8.38     P-val=0.0038

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =        770
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =      770
                                                      F(  1,   192) =     6.14
                                                      Prob > F      =   0.0141
Total (centered) SS     =  42349.67582                Centered R2   =   0.8314
Total (uncentered) SS   =  42349.67582                Uncentered R2 =        .
Residual SS             =  47634.72775                Root MSE      =    9.962

-------------------------------------------------------------------------------
----
                  |               Robust
repvotesmajorpe~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |  -.0619823   .0250215    -2.48   0.014    -.1113347   -.012
> 6299
-------------------------------------------------------------------------------
----
Underidentification test (Kleibergen-Paap rk LM statistic):             10.273
                                                   Chi-sq(1) P-val =    0.0013
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               93.251
                         (Kleibergen-Paap rk Wald F statistic):         13.577
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_count_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |           96              96              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)
capacity
(running historical version of reghdfe)
(dropped 7 singleton observations)
(converged in 8 iterations)

Stage: first - cum_capacity_turbine

HDFE Linear regression                            Number of obs   =        689
Absorbing 2 HDFE groups                           F(   1,    192) =      13.30
Statistics robust to heteroskedasticity           Prob > F        =     0.0003
                                                  R-squared       =     0.7954
                                                  Adj R-squared   =     0.6507
                                                  Within R-sq.    =     0.1094
Number of clusters (district_fixed) =        193  Root MSE        =   117.6105

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_capaci~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   39.99234   10.96713     3.65   0.000     18.36081    61.62387
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           92              92              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =        689
Absorbing 2 HDFE groups                           F(   1,    192) =       0.01
Statistics robust to heteroskedasticity           Prob > F        =     0.9407
                                                  R-squared       =     0.6459
                                                  Adj R-squared   =     0.3956
                                                  Within R-sq.    =     0.0000
Number of clusters (district_fixed) =        193  Root MSE        =     9.6909

                               (Std. Err. adjusted for 193 clusters in district
> _fixed)
-------------------------------------------------------------------------------
-------
                     |               Robust
incumbvotesmajorpe~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |  -.0002264   .0030369    -0.07   0.941    -.0062163    .
> 0057635
-------------------------------------------------------------------------------
-------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |           92              92              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =        689
Absorbing 2 HDFE groups                           F(   1,    192) =       2.08
Statistics robust to heteroskedasticity           Prob > F        =     0.1509
                                                  R-squared       =     0.6486
                                                  Adj R-squared   =     0.4000
                                                  Within R-sq.    =     0.0074
Number of clusters (district_fixed) =        193  Root MSE        =     9.6549

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
incumbvote~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   .8105287   .5621079     1.44   0.151    -.2981708    1.919228
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           92              92              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_capacity |      13.30    0.0003 |       15.43   0.0001 |       13.30

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=10.91    P-val=0.0010

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      73.18
Kleibergen-Paap Wald rk F statistic                                13.30

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=       2.08     P-val=0.1509
Anderson-Rubin Wald test           Chi-sq(1)=      2.41     P-val=0.1204
Stock-Wright LM S statistic        Chi-sq(1)=      2.36     P-val=0.1245

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =        689
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =      689
                                                      F(  1,   192) =     1.50
                                                      Prob > F      =   0.2215
Total (centered) SS     =  37847.58078                Centered R2   =   0.6214
Total (uncentered) SS   =  37847.58078                Uncentered R2 =        .
Residual SS             =  40475.88205                Root MSE      =    10.02

-------------------------------------------------------------------------------
-------
                     |               Robust
incumbvotesmajorpe~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |   .0202671   .0165244     1.23   0.222    -.0123257    .
> 0528599
-------------------------------------------------------------------------------
-------
Underidentification test (Kleibergen-Paap rk LM statistic):             10.906
                                                   Chi-sq(1) P-val =    0.0010
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               73.184
                         (Kleibergen-Paap rk Wald F statistic):         13.297
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_capacity_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |           92              92              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)
count
(running historical version of reghdfe)
(dropped 7 singleton observations)
(converged in 8 iterations)

Stage: first - cum_count_turbine

HDFE Linear regression                            Number of obs   =        689
Absorbing 2 HDFE groups                           F(   1,    192) =      12.58
Statistics robust to heteroskedasticity           Prob > F        =     0.0005
                                                  R-squared       =     0.9882
                                                  Adj R-squared   =     0.9798
                                                  Within R-sq.    =     0.1163
Number of clusters (district_fixed) =        193  Root MSE        =    68.4552

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_count_~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   24.09943   6.795533     3.55   0.000     10.69594    37.50291
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           92              92              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =        689
Absorbing 2 HDFE groups                           F(   1,    192) =       0.07
Statistics robust to heteroskedasticity           Prob > F        =     0.7908
                                                  R-squared       =     0.6460
                                                  Adj R-squared   =     0.3956
                                                  Within R-sq.    =     0.0001
Number of clusters (district_fixed) =        193  Root MSE        =     9.6905

                            (Std. Err. adjusted for 193 clusters in district_fi
> xed)
-------------------------------------------------------------------------------
----
                  |               Robust
incumbvotesmajo~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |  -.0013382   .0050388    -0.27   0.791    -.0112766    .008
> 6002
-------------------------------------------------------------------------------
----

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |           92              92              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =        689
Absorbing 2 HDFE groups                           F(   1,    192) =       2.08
Statistics robust to heteroskedasticity           Prob > F        =     0.1509
                                                  R-squared       =     0.6486
                                                  Adj R-squared   =     0.4000
                                                  Within R-sq.    =     0.0074
Number of clusters (district_fixed) =        193  Root MSE        =     9.6549

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
incumbvote~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   .8105287   .5621079     1.44   0.151    -.2981708    1.919228
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |           92              92              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_count_tu |      12.58    0.0005 |       14.59   0.0001 |       12.58

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=10.35    P-val=0.0013

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                      78.44
Kleibergen-Paap Wald rk F statistic                                12.58

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=       2.08     P-val=0.1509
Anderson-Rubin Wald test           Chi-sq(1)=      2.41     P-val=0.1204
Stock-Wright LM S statistic        Chi-sq(1)=      2.36     P-val=0.1245

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =        689
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =      689
                                                      F(  1,   192) =     1.49
                                                      Prob > F      =   0.2243
Total (centered) SS     =  37847.58078                Centered R2   =   0.6215
Total (uncentered) SS   =  37847.58078                Uncentered R2 =        .
Residual SS             =  40457.30362                Root MSE      =    10.02

-------------------------------------------------------------------------------
----
                  |               Robust
incumbvotesmajo~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |   .0336327   .0275853     1.22   0.224    -.0207764    .088
> 0418
-------------------------------------------------------------------------------
----
Underidentification test (Kleibergen-Paap rk LM statistic):             10.350
                                                   Chi-sq(1) P-val =    0.0013
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               78.443
                         (Kleibergen-Paap rk Wald F statistic):         12.577
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_count_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |           92              92              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)

. 
. *--------------------- Export LaTeX regression tables -----------------------
> *
. cd "$rootDir/$resultDir/Tables"
/Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urpelainen Zhang
> )/JOP/UZ_JOP2021_Replication/Results/Tables

. 
. ** IV estimates only
. esttab dem_capacity_iv dem_count_iv rep_capacity_iv rep_count_iv ///
>                 inc_capacity_iv inc_count_iv using TableA9.tex, booktabs repl
> ace ///
>                 refcat(cum_capacity_turbine "\emph{Panel: IV}", nolabel) ///
>                 b(%9.3f) se noconstant nonotes legend star(* 0.10 ** 0.05 ***
>  0.01) ///
>                 varlabels(cum_capacity_turbine "Cumulative capacity (MW)" cum
> _count_turbine "Cumulative count") varwidth(27) modelwidth(13) ///
>                 stats(N N_clust r2, labels("Observations" "Districts" "\(R^{2
> }\)") fmt(0 0 2)) ///
>                 mtitles("Model" "Model" "Model" "Model" "Model" "Model") ///
>                 mgroups("Democratic Vote" "Republican Vote" "Incumbent Vote",
>  pattern(1 0 1 0 1 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(
> \cmidrule(lr){@span})) ///
>                 width(\hsize)
(output written to TableA9.tex)

. 
. 
. *****************************************************************************
> **
. /*                                         Table A10                         
>                                     */
. *****************************************************************************
> **
. cd "$rootDir/$dataDir/Final"
/Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urpelainen Zhang
> )/JOP/UZ_JOP2021_Replication/Data/Final

. use votes_wind_panel_urban.dta, clear

. 
. ** Create instrument and fixed effects
. gen t = year - 2003

. gen inter = t * mean_wp

. 
. egen stateyear_fixed = group(state year)

. egen district_fixed = group(state district)

. 
. 
. local outcome pro_env anti_env // outcome variable 

. local endogenous cum_capacity_turbine cum_count_turbine // endogenous variabl
> e

. local instrument inter // instrument

. local admin1_trend stateyear_fixed // geography * time trend

. local admin2 district_fixed // panel unit (cluster variable)

. 
. foreach y in `outcome' {
  2.         // Create outcome variable label for storing estimates
.         tokenize "`y'", parse("_")
  3.         local y_name "`1'"
  4.         di "`y_name'"
  5.         
.         foreach x in `endogenous' {
  6.                         // Create endogenous variable label for storing es
> timates
.                         tokenize "`x'", parse("_")
  7.                         local x_name "`3'"
  8.                         di "`x_name'"
  9.                         
.                         // Run IV regression
.                         reghdfe `y' (`x' = `instrument') if frac_urbanArea < 
> 0.5, absorb(`admin1_trend' `admin2') ffirst stages(first ols reduced) vce(clu
> ster `admin2') old
 10.                         
.                         // Store IV, first stage, OLS, reduced form estimates
.                         estimates store `y_name'_`x_name'_iv
 11.                         estimates restore reghdfe_first1
 12.                         estimates store `y_name'_`x_name'_first
 13.                         estimates restore reghdfe_ols
 14.                         estimates store `y_name'_`x_name'_ols
 15.                         estimates restore reghdfe_reduced
 16.                         estimates store `y_name'_`x_name'_reduced
 17.                 }
 18. }
pro
capacity
(running historical version of reghdfe)
(dropped 10 singleton observations)
(converged in 4 iterations)

Stage: first - cum_capacity_turbine

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =      15.98
Statistics robust to heteroskedasticity           Prob > F        =     0.0001
                                                  R-squared       =     0.7455
                                                  Adj R-squared   =     0.6718
                                                  Within R-sq.    =     0.1349
Number of clusters (district_fixed) =        193  Root MSE        =   144.8739

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_capaci~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   47.37488   11.85015     4.00   0.000     24.00168    70.74808
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |          240             240              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =       7.40
Statistics robust to heteroskedasticity           Prob > F        =     0.0071
                                                  R-squared       =     0.8439
                                                  Adj R-squared   =     0.7986
                                                  Within R-sq.    =     0.0112
Number of clusters (district_fixed) =        193  Root MSE        =    17.8854

                               (Std. Err. adjusted for 193 clusters in district
> _fixed)
-------------------------------------------------------------------------------
-------
                     |               Robust
             pro_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |   .0122147   .0044903     2.72   0.007     .0033581    .
> 0210713
-------------------------------------------------------------------------------
-------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |          240             240              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =       4.12
Statistics robust to heteroskedasticity           Prob > F        =     0.0437
                                                  R-squared       =     0.8431
                                                  Adj R-squared   =     0.7976
                                                  Within R-sq.    =     0.0063
Number of clusters (district_fixed) =        193  Root MSE        =    17.9298

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
     pro_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   1.179254   .5808866     2.03   0.044     .0335156    2.324993
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |          240             240              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_capacity |      15.98    0.0001 |       18.35   0.0000 |       15.98

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.61    P-val=0.0007

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                     263.14
Kleibergen-Paap Wald rk F statistic                                15.98

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=       4.12     P-val=0.0437
Anderson-Rubin Wald test           Chi-sq(1)=      4.73     P-val=0.0296
Stock-Wright LM S statistic        Chi-sq(1)=      4.15     P-val=0.0416

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =       1929
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =     1929
                                                      F(  1,   192) =     3.86
                                                      Prob > F      =   0.0509
Total (centered) SS     =  483641.2928                Centered R2   =   0.8420
Total (uncentered) SS   =  483641.2928                Uncentered R2 =        .
Residual SS             =  484058.8974                Root MSE      =    17.99

-------------------------------------------------------------------------------
-------
                     |               Robust
             pro_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |    .024892   .0126708     1.96   0.051    -.0000998    .
> 0498837
-------------------------------------------------------------------------------
-------
Underidentification test (Kleibergen-Paap rk LM statistic):             11.613
                                                   Chi-sq(1) P-val =    0.0007
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):              263.140
                         (Kleibergen-Paap rk Wald F statistic):         15.983
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_capacity_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |          240             240              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)
count
(running historical version of reghdfe)
(dropped 10 singleton observations)
(converged in 4 iterations)

Stage: first - cum_count_turbine

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =      15.71
Statistics robust to heteroskedasticity           Prob > F        =     0.0001
                                                  R-squared       =     0.9797
                                                  Adj R-squared   =     0.9739
                                                  Within R-sq.    =     0.1426
Number of clusters (district_fixed) =        193  Root MSE        =    79.8711

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_count_~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   26.97431   6.804948     3.96   0.000     13.55225    40.39636
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |          240             240              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =       7.89
Statistics robust to heteroskedasticity           Prob > F        =     0.0055
                                                  R-squared       =     0.8441
                                                  Adj R-squared   =     0.7989
                                                  Within R-sq.    =     0.0127
Number of clusters (district_fixed) =        193  Root MSE        =    17.8720

                            (Std. Err. adjusted for 193 clusters in district_fi
> xed)
-------------------------------------------------------------------------------
----
                  |               Robust
          pro_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |   .0234716   .0083577     2.81   0.005      .006987    .039
> 9563
-------------------------------------------------------------------------------
----

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |          240             240              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =       4.12
Statistics robust to heteroskedasticity           Prob > F        =     0.0437
                                                  R-squared       =     0.8431
                                                  Adj R-squared   =     0.7976
                                                  Within R-sq.    =     0.0063
Number of clusters (district_fixed) =        193  Root MSE        =    17.9298

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
     pro_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   1.179254   .5808866     2.03   0.044     .0335156    2.324993
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |          240             240              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_count_tu |      15.71    0.0001 |       18.04   0.0000 |       15.71

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.48    P-val=0.0007

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                     280.67
Kleibergen-Paap Wald rk F statistic                                15.71

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=       4.12     P-val=0.0437
Anderson-Rubin Wald test           Chi-sq(1)=      4.73     P-val=0.0296
Stock-Wright LM S statistic        Chi-sq(1)=      4.15     P-val=0.0416

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =       1929
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =     1929
                                                      F(  1,   192) =     3.94
                                                      Prob > F      =   0.0486
Total (centered) SS     =  483641.2928                Centered R2   =   0.8426
Total (uncentered) SS   =  483641.2928                Uncentered R2 =        .
Residual SS             =   482072.773                Root MSE      =    17.96

-------------------------------------------------------------------------------
----
                  |               Robust
          pro_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |   .0437177    .022024     1.99   0.049     .0002777    .087
> 1577
-------------------------------------------------------------------------------
----
Underidentification test (Kleibergen-Paap rk LM statistic):             11.483
                                                   Chi-sq(1) P-val =    0.0007
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):              280.668
                         (Kleibergen-Paap rk Wald F statistic):         15.713
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_count_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |          240             240              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)
anti
capacity
(running historical version of reghdfe)
(dropped 10 singleton observations)
(converged in 4 iterations)

Stage: first - cum_capacity_turbine

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =      15.98
Statistics robust to heteroskedasticity           Prob > F        =     0.0001
                                                  R-squared       =     0.7455
                                                  Adj R-squared   =     0.6718
                                                  Within R-sq.    =     0.1349
Number of clusters (district_fixed) =        193  Root MSE        =   144.8739

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_capaci~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   47.37488   11.85015     4.00   0.000     24.00168    70.74808
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |          240             240              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =       5.90
Statistics robust to heteroskedasticity           Prob > F        =     0.0161
                                                  R-squared       =     0.8382
                                                  Adj R-squared   =     0.7913
                                                  Within R-sq.    =     0.0087
Number of clusters (district_fixed) =        193  Root MSE        =    18.1351

                               (Std. Err. adjusted for 193 clusters in district
> _fixed)
-------------------------------------------------------------------------------
-------
                     |               Robust
            anti_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |  -.0108956   .0044864    -2.43   0.016    -.0197447   -.
> 0020466
-------------------------------------------------------------------------------
-------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |          240             240              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =       5.85
Statistics robust to heteroskedasticity           Prob > F        =     0.0165
                                                  R-squared       =     0.8382
                                                  Adj R-squared   =     0.7914
                                                  Within R-sq.    =     0.0091
Number of clusters (district_fixed) =        193  Root MSE        =    18.1312

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
    anti_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |  -1.439505   .5953727    -2.42   0.017    -2.613816   -.2651938
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |          240             240              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_capacity |      15.98    0.0001 |       18.35   0.0000 |       15.98

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.61    P-val=0.0007

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                     263.14
Kleibergen-Paap Wald rk F statistic                                15.98

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=       5.85     P-val=0.0165
Anderson-Rubin Wald test           Chi-sq(1)=      6.71     P-val=0.0096
Stock-Wright LM S statistic        Chi-sq(1)=      5.83     P-val=0.0157

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =       1929
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =     1929
                                                      F(  1,   192) =     4.91
                                                      Prob > F      =   0.0279
Total (centered) SS     =  495982.7314                Centered R2   =   0.8336
Total (uncentered) SS   =  495982.7314                Uncentered R2 =        .
Residual SS             =  505453.9256                Root MSE      =    18.39

-------------------------------------------------------------------------------
-------
                     |               Robust
            anti_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. In
> terval]
---------------------+---------------------------------------------------------
-------
cum_capacity_turbine |  -.0303854    .013711    -2.22   0.028    -.0574289   -.
> 0033419
-------------------------------------------------------------------------------
-------
Underidentification test (Kleibergen-Paap rk LM statistic):             11.613
                                                   Chi-sq(1) P-val =    0.0007
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):              263.140
                         (Kleibergen-Paap rk Wald F statistic):         15.983
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_capacity_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
     stateyear_fixed |          240             240              0     | 
      district_fixed |            0             193            193 *   | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)
count
(running historical version of reghdfe)
(dropped 10 singleton observations)
(converged in 4 iterations)

Stage: first - cum_count_turbine

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =      15.71
Statistics robust to heteroskedasticity           Prob > F        =     0.0001
                                                  R-squared       =     0.9797
                                                  Adj R-squared   =     0.9739
                                                  Within R-sq.    =     0.1426
Number of clusters (district_fixed) =        193  Root MSE        =    79.8711

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
cum_count_~e |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |   26.97431   6.804948     3.96   0.000     13.55225    40.39636
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |          240             240              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: ols

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =       5.87
Statistics robust to heteroskedasticity           Prob > F        =     0.0163
                                                  R-squared       =     0.8383
                                                  Adj R-squared   =     0.7915
                                                  Within R-sq.    =     0.0095
Number of clusters (district_fixed) =        193  Root MSE        =    18.1272

                            (Std. Err. adjusted for 193 clusters in district_fi
> xed)
-------------------------------------------------------------------------------
----
                  |               Robust
         anti_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |  -.0206271   .0085142    -2.42   0.016    -.0374204   -.003
> 8338
-------------------------------------------------------------------------------
----

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |          240             240              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: reduced

HDFE Linear regression                            Number of obs   =      1,929
Absorbing 2 HDFE groups                           F(   1,    192) =       5.85
Statistics robust to heteroskedasticity           Prob > F        =     0.0165
                                                  R-squared       =     0.8382
                                                  Adj R-squared   =     0.7914
                                                  Within R-sq.    =     0.0091
Number of clusters (district_fixed) =        193  Root MSE        =    18.1312

                       (Std. Err. adjusted for 193 clusters in district_fixed)
------------------------------------------------------------------------------
             |               Robust
    anti_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
       inter |  -1.439505   .5953727    -2.42   0.017    -2.613816   -.2651938
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
stateyear_fixed |          240             240              0     | 
 district_fixed |            0             193            193 *   | 
------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n

Stage: iv


Summary results for first-stage regressions
-------------------------------------------

                                           (Underid)            (Weak id)
Variable     | F(  1,   192)  P-val | SW Chi-sq(  1) P-val | SW F(  1,   192)
cum_count_tu |      15.71    0.0001 |       18.04   0.0000 |       15.71

NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

Underidentification test
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
Kleibergen-Paap rk LM statistic          Chi-sq(1)=11.48    P-val=0.0007

Weak identification test
Ho: equation is weakly identified
Cragg-Donald Wald F statistic                                     280.67
Kleibergen-Paap Wald rk F statistic                                15.71

Stock-Yogo weak ID test critical values for K1=1 and L1=1:
                                   10% maximal IV size             16.38
                                   15% maximal IV size              8.96
                                   20% maximal IV size              6.66
                                   25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

Weak-instrument-robust inference
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
Anderson-Rubin Wald test           F(1,192)=       5.85     P-val=0.0165
Anderson-Rubin Wald test           Chi-sq(1)=      6.71     P-val=0.0096
Stock-Wright LM S statistic        Chi-sq(1)=      5.83     P-val=0.0157

NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  =        193
Number of observations               N  =       1929
Number of regressors                 K  =          1
Number of endogenous regressors      K1 =          1
Number of instruments                L  =          1
Number of excluded instruments       L1 =          1

HDFE IV (2SLS) estimation
-------------------------

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) =    193          Number of obs =     1929
                                                      F(  1,   192) =     4.97
                                                      Prob > F      =   0.0269
Total (centered) SS     =  495982.7314                Centered R2   =   0.8344
Total (uncentered) SS   =  495982.7314                Uncentered R2 =        .
Residual SS             =  503171.9933                Root MSE      =    18.35

-------------------------------------------------------------------------------
----
                  |               Robust
         anti_env |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Inter
> val]
------------------+------------------------------------------------------------
----
cum_count_turbine |  -.0533658   .0239365    -2.23   0.027    -.1005781   -.006
> 1535
-------------------------------------------------------------------------------
----
Underidentification test (Kleibergen-Paap rk LM statistic):             11.483
                                                   Chi-sq(1) P-val =    0.0007
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):              280.668
                         (Kleibergen-Paap rk Wald F statistic):         15.713
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
------------------------------------------------------------------------------
Hansen J statistic (overidentification test of all instruments):         0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         cum_count_turbine
Excluded instruments: inter
------------------------------------------------------------------------------

Absorbed degrees of freedom:
--------------------------------------------------------------------+
      Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
------------------+-------------------------------------------------|
  stateyear_fixed |          240             240              0     | 
   district_fixed |            0             193            193 *   | 
--------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computatio
> n
(results reghdfe_first1 are active now)
(results reghdfe_ols are active now)
(results reghdfe_reduced are active now)

. 
. 
. *--------------------- Export LaTeX regression tables -----------------------
> *
. cd "$rootDir/$resultDir/Tables"
/Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urpelainen Zhang
> )/JOP/UZ_JOP2021_Replication/Results/Tables

. 
. ** IV estimates only
. esttab pro_capacity_iv pro_count_iv anti_capacity_iv anti_count_iv using Tabl
> eA10.tex, booktabs replace ///
>                 se noconstant nonotes legend nonumbers collabels(none) star(*
>  0.10 ** 0.05 *** 0.01) ///
>                 b(%9.3f) stats(N N_clust r2, labels("Observations" "Districts
> " "\(R^{2}\)") fmt(0 0 2)) ///
>                 varlabels(cum_capacity_turbine "Cumulative capacity (MW)" cum
> _count_turbine "Cumulative count") varwidth(27) modelwidth(13) ///
>                 mtitles("Model" "Model" "Model" "Model") ///
>                 mgroups("Pro-Environment Vote" "Anti-Environment Vote", patte
> rn(1 0 1 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(
> lr){@span})) ///
>                 refcat(cum_capacity_turbine "\emph{Panel: IV}", nolabel) ///
>                 width(\hsize)
(output written to TableA10.tex)

. 
.                 
. ** Close log file
. log close
      name:  <unnamed>
       log:  /Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urp
> elainen Zhang)/JOP/UZ_JOP2021_Replication/Analysis/logSTATA/015_analysis_drop
> Urban.smcl
  log type:  smcl
 closed on:   6 Nov 2021, 20:34:45
-------------------------------------------------------------------------------
